package com.store.mapper.lt;

import com.store.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

//这里加只是为了idea不报警告，写不写无所谓，已经扫描了
@Repository
public interface UserMapper extends Mapper<User> {

    User selectUserByUsername(@Param("username") String username);

    int selectUserByPhone(@Param("phone") String phone);

    User selectUserByPhone2(@Param("phone") String phone);

    int updateUserPassword(@Param("username") String username, @Param("password")String password);

    boolean updateUserByLock(@Param("userId") Integer userId, @Param("status") String status);

    boolean addUser(@Param("id") Integer id ,@Param("username")String username , @Param("password")String password , @Param("phone")String phone ,@Param("status")String status,@Param("salt")String salt);
}
